package com.sphd.emanu.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sphd.emanu.R;
import com.sphd.emanu.pojo.DaySale;

import java.util.List;

/**
 * @Author Hu
 * @Time 2017/4/24 --16:21.
 * @Email 87683202@qq.com
 */
public class SaleAdapter extends BaseQuickAdapter<DaySale, BaseViewHolder> {
    public SaleAdapter(int layoutResId, List<DaySale> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DaySale item) {
        helper
                .setText(R.id.item_sale_date, item.getDate())
                .setText(R.id.item_sale_money, "￥" + item.getDaySaleSum().toString())
                .setText(R.id.item_topup_money, "￥" + item.getDepositSum().toString());
    }
}
